from pydantic import BaseModel, Field
from typing import Optional
import time
import uuid

class ClipboardItem(BaseModel):
    id: str = Field(default_factory=lambda: f"{int(time.time()*1000)}-{uuid.uuid4().hex[:10]}")
    content: str
    device_id: str
    timestamp: int = Field(default_factory=lambda: int(time.time()*1000)) 